<section id="content">
    <section class="vbox">
        <section class="scrollable padder">
            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                <li><a href="{:url('Home/index')}"><i class="fa fa-home"></i> 首页</a></li>
                <li><a href="#">小程序用户</a></li>
            </ul>
            <section class="panel panel-default">
                <div class="table-responsive">
                    <!-- <div class="row m-l-none m-r-none bg-light lter">
                        <div class="col-sm-6 col-md-4 padder-v b-r b-light">
                            <span class="fa-stack fa-2x pull-left m-r-sm">
                                <i class="fa fa-circle fa-stack-2x text-info"></i>
                                <i class="fa fa-group fa-stack-1x text-white"></i>
                            </span>
                            <a class="clear" href="#">
                                <span class="h3 block m-t-xs"><strong>{$statistics.count}</strong></span>
                                <small class="text-muted text-uc">用户总数</small>
                            </a>
                        </div>
                        <div class="col-sm-6 col-md-4 padder-v b-r b-light">
                            <span class="fa-stack fa-2x pull-left m-r-sm">
                                <i class="fa fa-circle fa-stack-2x text-info"></i>
                                <i class="fa fa-cloud-download fa-stack-1x text-white"></i>
                            </span>
                            <a class="clear" href="#">
                                <span
                                    class="h3 block m-t-xs"><strong>{$statistics.today_new_num?$statistics.today_new_num:'0'}</strong></span>
                                <small class="text-muted text-uc">今日访问用户数</small>
                            </a>
                        </div>
                        <div class="col-sm-6 col-md-4 padder-v b-r b-light">
                            <span class="fa-stack fa-2x pull-left m-r-sm">
                                <i class="fa fa-circle fa-stack-2x text-info"></i>
                                <i class="fa fa-male fa-stack-1x text-white"></i>
                            </span>
                            <a class="clear" href="#">
                                <span class="h3 block m-t-xs"><strong>{$statistics.today_add_num}</strong></span>
                                <small class="text-muted text-uc">今日新增用户数</small>
                            </a>
                        </div>
                    </div> -->
                    <table class="table table-striped m-b-none" data-ride="datatables"
                        style="text-align:center!important;">
                        <thead>
                            <tr>
                                <th colspan="9">
                                    <div class="row" style="padding: 1rem 0;">
                                        <form class="col-sm-12" action="{:url('User/index')}" method="post"
                                            enctype="multipart/form-data" style="margin-top: 5px;margin-bottom: 0;">
                                            <input type="text" class="form-control" style="width:30rem;display: inline"
                                                data-required="true" name="search" value="{$search}" placeholder="关键词">
                                            <button type="submit" class="btn btn-success btn-s-xs">搜索</button>
                                        </form>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th width="10%" style="text-align:center!important;">昵称</th>
                                <th width="10%" style="text-align:center!important;">头像</th>
                                <!-- <th width="10%" style="text-align:center!important;">性别</th> -->
                                <th width="10%" style="text-align:center!important;">电话</th>
                                <th width="10%" style="text-align:center!important;">创建时间</th>
                                <th width="10%" style="text-align:center!important;">最近登录</th>
                                <th width="10%" style="text-align:center!important;">收藏</th>
                                <th width="10%" style="text-align:center!important;">状态</th>
                                <th width="10%" style="text-align:center!important;">操作</th>
                            </tr>
                        </thead>
                        <tbody style="font-size:1em;">
                            {volist name="res" id="v"}
                            <tr>
                                <td>{$v.nick_name}</td>
                                <td><img src="{$v.avatar_img?$v.avatar_img:'__PIC__'}"></td>
                                <!-- <td>{$v.sex?($v.sex==1?'男':'女'):'未知'}</td> -->
                                <td>{$v.phone?$v.phone:'暂无'}</td>
                                <td>{$v.create_time}</td>
                                <td>{$v.last_login}</td>
                                <td>
                                    <div>问答：{$v.collection_num_qa}</div>
                                </td>
                                <td>{$v.limit_status}</td>
                                <td>
                                    <a href="{:url('User/add',array('id'=>$v.id,'page'=>$page,'search'=>$search))}"
                                        class="btn btn-s-md btn-info btn-rounded" style="margin-bottom: 5px">编辑</a>
                                    <a href="{:url('Qa/orderList',array('openid'=>$v.openid))}"
                                        class="btn btn-s-md btn-danger btn-rounded" style="margin-bottom: 5px">问答记录</a>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                </div>
                <table border="0" style="width: 100%; height: 20px">
                    <tbody>
                        <tr>
                            <td style="width: 2px; height: 31px"></td>
                            <td style="width: 500px; height: 31px">
                                <span id="pager" style="font-family:宋体;font-size:12px;">
                                    <table border="0" style="font-family:宋体;font-size:12px;">
                                        <tbody>
                                            <tr>
                                                <td align="right">
                                                    <span>
                                                        共<font color="Red">{$count}</font>条记录&nbsp;&nbsp;当前<font
                                                            color="Red">{$page}</font>/<font color="Red">{$allpage}
                                                        </font>页
                                                    </span>
                                                    &nbsp;[<a id="pager_First"
                                                        href="{:url('User/index',array('page'=>1,'search'=>$search))}"
                                                        title="首页">首页</a>]
                                                    &nbsp;[<a id="pager_Prev"
                                                        href="{:url('User/index',array('page'=>$page-1,'search'=>$search))}"
                                                        title="前页">前页</a>]
                                                    &nbsp;[<a id="pager_Next" title="后页"
                                                        href="{:url('User/index',array('page'=>$page+1,'search'=>$search))}">后页</a>]
                                                    &nbsp;[<a id="pager_Last" title="尾页"
                                                        href="{:url('User/index',array('page'=>$allpage,'search'=>$search))}">尾页</a>]
                                                    &nbsp;转到
                                                    <form action="{:url('User/index')}" method="post"
                                                        style="display: inline">
                                                        <input name="page" type="text" value="{$page}"
                                                            id="pager_txbPage" style="width:30px;">
                                                        <input name="search" type="text" value="{$search}" id="search"
                                                            style="width:30px;display: none">
                                                        <input type="submit" name="pager$btnGo" value="转到"
                                                            id="pager_btnGo">
                                                    </form>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </span>
                            </td>
                            <td style="width: 100px; height: 31px"></td>
                        </tr>
                    </tbody>
                </table>
            </section>
        </section>
    </section>
    <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
</section>
<script type="text/javascript">
</script>

<style type="text/css">
    img {
        width: 60px;
    }
</style>
<!-- datatables -->